package com.dyna.foundation.domain.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@ApiModel(value = "管理后台 - 租户套餐创建/修改 Request VO")
@Data
public class SysTenantPackageSaveForm {

    @ApiModelProperty(value = "套餐编号", example = "1024")
    private Long id;

    @ApiModelProperty(value = "套餐名", required = true, example = "VIP")
    @NotEmpty(message = "套餐名不能为空")
    private String name;

    @ApiModelProperty(value = "状态，参见 CommonStatusEnum 枚举", required = true, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty(value = "备注", example = "好")
    private String remark;

    @ApiModelProperty(value = "关联的菜单编号", required = true)
    @NotNull(message = "关联的菜单编号不能为空")
    private Set<Long> menuIds;

}
